@import './base.less';
button, input, textarea, view {
  font-size: 28rpx;
  color: #555;
}
.page-main{
  position: relative;
}
.wrapper{
  overflow: hidden;
}
image{
  width: 100%;
  display: block;
}
input, button{
  outline: none;
  border: 0;
  background-color: transparent;
}
.oneline{
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}
.no-list{
  margin-top: 217rpx;
  image{
    width: 750rpx;
    height: 341rpx;
  }
  view{
    color: #aaa;
    text-align: center;
    margin-top: 46rpx;
  }
}
.w-form-cell{
  height: 98rpx;
  padding: 0 30rpx;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2rpx solid #ededed;
  background-color: #fff;
  &:first-child{
    border-top: 2rpx solid #ededed;
  }
  view, input{
    font-size: 32rpx;
    color: #4d4d4d;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .w-cell-label{
    display: flex;
    width: 26%;
    justify-content: space-between;
    margin-right: 30rpx;
  }
  .w-cell-input{
    height: 100%;
    display: flex;
    flex: 1;
    picker{
      position: relative;
      width: 100%;
      display: flex;
      align-items: center;
      .picker-view{
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        .icon-picker-more{
          width: 16rpx;
          height: 27rpx;
        }
      }
    }
    .input{
      width: 100%;
      height: 100%;
      input{
        flex: 1;
        border: 0;
        height: 100%;
        width: 100%;
      }
    }
  }
  .w-cell-input-picker{
    height: 100%;
    display: flex;
    flex: 1;
    picker{
      position: relative;
      display: flex;
      align-items: center;
      flex: 1;
      .picker-view{
        position: absolute;
        top: 20rpx;
        right: 0;
        bottom: 20rpx;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        border-left: 2rpx solid #eee;
        .icon-picker-more{
          width: 16rpx;
          height: 27rpx;
        }
      }
    }
    .input{
      flex: 4;
      height: 100%;
      input{
        flex: 1;
        border: 0;
        height: 100%;
        width: 100%;
      }
    }
  }
  .w-cell-sub {
    display: flex;
    align-items: center;
    width: 117rpx;
    position: relative;
    border-right: 2rpx solid #ededed;
    margin-right: 27rpx;
    image {
      width: 24rpx;
      height: 16rpx;
      position: absolute;
      top: 50%;
      right: 20rpx;
      transform: translate(-50%, -50%) rotate(270deg);
    }
  }
}

.switch-type{
  background-color: #fff;
  display: flex;
  width: 100%;
  padding: 20rpx 0;
  .switch-type-item{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28rpx;
    color: #888;
    &.active{
      color: #369ef5;
    }
    &:first-child{
      border-right: 1rpx solid #ddd;
    }
  }
}
.input-placeholder{
  color: #ccc !important;
}
button {
  font-size: 28rpx;
  background-color: #fff;
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1;
}

input {
  outline: none;
  border: none;
  list-style: none;
}

button::after {
  border: none;
}
.coupon-switch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  width: 100%;
  height: 100rpx;
  margin-top: 13rpx;
  border-top: 1rpx solid #EEE;
  border-bottom: 1rpx solid #EEE;
  .left {
    display: flex;
    align-items: center;
    margin-left: 30rpx;
    color: #369EF5;
    .num {
      margin-left: 20rpx;
      color: #FF3333;
      border: 1rpx solid #FF3333;
      border-radius: 15rpx;
      width: 100rpx;
      line-height: 30rpx;
      text-align: center;
      font-size: 20rpx;
    }
  }
  .right {
    display: flex;
    align-items: center;
    .money {
      margin-right: 23rpx;
      font-size: 30rpx;
      color: #369EF5;
    }
    image {
      width: 34rpx;
      height: 10rpx;
      margin-right: 20rpx;
    }
  }
  switch {
    zoom: 0.6;
  }
}

.pop-coupon {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  .mask {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 31;
  }
  .coupon-content {
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 32;
    .title {
      background: #fff;
      width: 100%;
      height: 100rpx;
      bottom: 749rpx;
      display: flex;
      justify-content: space-between;
      view {
        line-height: 100rpx;
      }
      image {
        width: 24rpx;
        height: 24rpx;
        margin-right: 20rpx;
      }
    }
    .content {
      flex-direction: column;
      background: #f3f3f3;
      height: 666rpx;
      overflow: scroll;
      padding: 30rpx 30rpx 250rpx 30rpx;
      .item {
        margin-bottom: 20rpx;
        .item-body{
          display: flex;
          position: relative;
          width: 100%;
          height: 240rpx;
          background-image: url('http://www.ibangche.com/mina/coupon/icon_coupons_off.png');
          background-size: 100% 100%;
          background-repeat: no-repeat;
          background-position: center;
          .item-left {
            width: 197rpx;
            display: flex;
            align-items: center;
            box-sizing: border-box;
            padding: 0rpx 0rpx 15rpx 15rpx;
            .name {
              margin-left: 45rpx;
              display: flex;
              align-items: flex-end;
              .money {
                font-size: 34rpx;
                color: #fff;
                margin-right: 10rpx;
              }
              .txt-reduce {
                color: #fff;
                letter-spacing: 5rpx;
                font-size: 60rpx;
                line-height: 60rpx;
              }
              .txt-free {
                color: #fff;
                font-size: 44rpx;
              }
            }
          }
          .item-right {
            flex: 1;
            margin: 30rpx 10rpx 0rpx 50rpx;
            position: relative;
            .name {
              display: flex;
              justify-content: space-between;
              align-items: center;
              margin-bottom: 16rpx;
              .have-used {
                margin-right: 20rpx;
                font-size: 23rpx;
                line-height: 23rpx;
              }
            }
            .time {
              margin-bottom: 12rpx;
              color: #ccc;
            }
            .from {
              color: #ccc;
            }
            .btn {
              width: 150rpx;
              height: 50rpx;
              line-height: 50rpx;
              color: #fff;
              font-size: 24rpx;
              text-align: center;
              border-radius: 25rpx;
            }
            .select-img {
              position: absolute;
              right: 20rpx;
              top: 47rpx;
              width: 36rpx;
              height: 36rpx;
            }
            .use-rules {
              position: absolute;
              bottom: 28rpx;
              right: 26rpx;
              left: 0;
              display: flex;
              align-items: center;
              display: flex;
              justify-content: space-between;
              .left {
                span {
                  color: #369EF5;
                }
              }
              .right {
                display: flex;
                align-items: center;
                span {
                  color: #666;
                }
                image {
                  margin-left: 10rpx;
                  width: 8rpx;
                  height: 15rpx;
                  transition: 0.5s;
                }
              }
            }
          }
        }
        &.active{
          .item-body{
            background-image: url('http://www.ibangche.com/mina/coupon/icon_coupons_on.png');
          }
        }
        .item-footer {
          margin-top: -15rpx;
          padding: 20rpx;
          text-indent: 2rem;
          font-size: 20rpx;
          background-color: #f7f7f7;
          box-shadow: 0rpx 5rpx 8rpx 0rpx rgba(4, 0, 0, 0.1);
        }
      }
      .img-empty {
        margin-top: 100rpx;
      }
      .other-exchange {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 40rpx;
        input {
          width: 480rpx;
          padding: 0rpx 20rpx;
          height: 60rpx;
          background: #fff;
        }
        .sure {
          color: #fff;
          background: #369EF5;
          width: 140rpx;
          line-height: 60rpx;
          text-align: center;
          border-radius: 10rpx;
          font-size: 24rpx;
          margin-left: 20rpx;
        }
      }
    }
    .btn {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      width: 100%;
      padding: 30rpx 0;
      .content-txt {
        margin-bottom: 30rpx;
      }
      .txt {
        width: 480rpx;
        height: 80rpx;
        background: linear-gradient(90deg, rgba(0, 195, 197, 1), rgba(72, 172, 255, 1));
        line-height: 80rpx;
        text-align: center;
        color: #fff;
        border-radius: 40rpx;
      }
    }
  }
}
.hidden{
  display: none !important;
}